package net.wanho.zx.zx_cms.config;


import org.apache.activemq.command.ActiveMQQueue;
import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.boot.autoconfigure.jms.activemq.ActiveMQAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.jms.annotation.EnableJms;
import org.springframework.stereotype.Component;

import javax.jms.Queue;
import javax.jms.Topic;


@Component
@EnableJms
public class ActivemqConfig {
    @Bean
    public Queue queue(){
        return new ActiveMQQueue("java149.queue");
    }

    @Bean
    public Topic topic(){
        return new ActiveMQTopic("upload.topic");
    }
}
